package com.tpp.threat_perception_platform.dao;
import com.tpp.threat_perception_platform.param.MyParam;
import com.tpp.threat_perception_platform.pojo.Account;
import com.tpp.threat_perception_platform.pojo.Host;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author yokui
* @description 针对表【account(资产-账号表)】的数据库操作Mapper
* @createDate 2025-06-10 21:55:59
* @Entity com.tpp.threat_perception_platform.pojo.Account
*/
public interface AccountMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Account record);

    int insertSelective(Account record);

    Account selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Account record);
    Account selectByMacAddress(String macAddress);
    int updateByPrimaryKey(Account record);
    void deleteByMacAddress(String macAddress);
    /**
     * 根据MAC地址查询所有账户信息
     * @param macAddress 主机的MAC地址
     * @return 账户信息列表
     */
    List<Account> findAllByMacAddress(@Param("macAddress") String macAddress);
    int countByMacAddress(String macAddress);

    List<Account> findAll(@Param("param") MyParam param);
    //风险评估模块
    int updateRiskLevelByMacAddress(@Param("macAddress") String macAddress, @Param("riskLevel") String riskLevel);

    int selectCount();
}
